package com.yuke.cloud.service.api.cmc.service.hystrix;

import com.yuke.cloud.common.util.wrapper.Wrapper;
import com.yuke.cloud.service.api.cmc.dto.*;
import com.yuke.cloud.service.api.cmc.service.CmcFeignApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@Component
public class CmcFeignHystrix implements CmcFeignApi {

    @Override
    public Wrapper loadSecKillAndSpecs() {
        return null;
    }

    @Override
    public Wrapper updateSecKillSkuCount(Long secKillId, Long specId, Integer number, Integer lockNumber, Integer saledNumber) {
        return null;
    }

    @Override
    public Wrapper updateSecKillSkusCount(List<CmsSecKillSkuDto> cmsSecKillSkuDtos) {
        return null;
    }

    @Override
    public Wrapper addCouponReceive(Long shopId,Integer sendType,Integer sendAspect) {
        return null;
    }

    @Override
    public Map<String,String> getMonthRebate(Long shopId) {
        log.error("getMonthRebate熔断");
        return null;
    }

    @Override
    public Wrapper updateCouponReceive(Long id,Long orderId) {
        System.out.println("Api更新updateCouponReceive失败熔断！");
        return null;
    }

    @Override
    public Wrapper updateCouponReceiveBack(Long id) {
        System.out.println("Api更新updateCouponReceive到未使用状态失败熔断！");
        return null;
    }

    @Override
    public Long findCouponReceiveIdByOrderId(Long orderId) {
        System.out.println("Api-getid-findCouponReceiveIdByOrderId失败熔断！");
        return null;
    }

    @Override
    public CmsSysInfoDto getSysInfoDtoByType(Long groupId,Integer typeId) {
        System.out.println("getSysInfoDtoByType失败熔断！");
        return null;
    }

    @Override
    public Wrapper updateRedReceiveUsered(Long id,String orderIds) {
        System.out.println("Api更新updateRedReceiveUsered失败熔断！");
        return null;
    }

    @Override
    public List<CmsTopicDto> getTopicInfoByTopicIds(List<Long> topicIds){
        System.out.println("getTopicInfoByTopicIds失败熔断！");
        return null;
    }

    @Override
    public Wrapper addCouponActive(Long shopId,Integer sendType,Integer sendAspect,Long couponId) {
        return null;
    }

    @Override
    public List<CmsCouponUserDto> getCouponUserListByCondition(CmsCouponUserDto cmsCouponReceive){
        log.error("getMonthRebate熔断");
        return null;
    }

    @Override
    public List<CmsCouponGoodsDto> getCouponGoodsByCouponId(Long couponId){
        log.error("getCouponGoodsByCouponId熔断");
        return null;
    }
}
